package com.service.infoEntry.constant;

/**
 * @author
 * @version 1.0
 * @date 2021/3/31 10:02
 */
public class Constant {
    public static final int  USER_NOT_FOUND = 10001; // 用户不存在
    public static final String USER_DOES_NOT_EXIST = "用户不存在";
    public static final int  USER_NOT_LOGIN = 10002; // 用户未登录
    public static final String USER_NOT_LOGGED_IN = "用户未登录";
    public static final int  USERNAME_REPEAT = 10003; // 用户名已存在，请重新输入
    public static final String USER_NAME_ALREADY_EXISTS_PLEASE_RE_ENTER = "用户名已存在，请重新输入";
    public static final int  USERNAME_OFF_SITE = 10004; // 登录信息已失效
    public static final String LOGIN_INFO_HAS_EXPIRED = "登录信息已失效";
    public static final int  USER_NO_AUTHORITY = 10005; // 用户权限不足
    public static final String INSUFFICIENT_USER_PERMISSIONS = "用户权限不足";
    public static final int  USER_NOT_ADMIN = 10006; // 用户不是普通管理员
    public static final String USER_IS_NOT_ORDINARY_ADMIN = "用户不是普通管理员";
    public static final int  USER_NOT_IN_TEAM = 10007; // 用户不在团队中
    public static final String USER_IS_NOT_IN_THE_TEAM = "用户不在团队中";
    public static final int  TEAM_NOT_EXIST = 10008; // 不存在该团队
    public static final String TEAM_DOES_NOT_EXIST = "不存在该团队";
    public static final int  CREATOR_NOT_EXIT = 10009; // 创建者用户无法退出团队
    public static final String CREATOR_OR_ADMIN_NOT_EXIT_THE_TEAM = "创建者或管理员用户无法退出团队";
    public static final int  ACCESSORY_NOT_EXIST = 100010; // 该项目暂无附件
    public static final String NOT_ATTACHMENTS_FOR_PROJECT = "该项目暂无附件";
    public static final int  USERNAME_OR_NOTFOUND = 10011; // 用户名或密码为空,请重新输入
    public static final String USERNAME_OR_PASSWORD_IS_EMPTY = "用户名或密码为空,请重新输入";
    public static final int  PROGRAMME_NOT_ACCESSORY = 10012; // 项目下没有附件
    public static final String NOT_ATTACHMENTS_UNDER_THE_PROJECT = "项目下没有附件";
    public static final int  PROGRAMME_NOT_EXIST = 10013; // 项目不存在
    public static final String PROJECT_DOES_NOT_EXIST = "项目不存在";
    public static final int  TEAM_NO_USER = 10014; // 团队下无用户
    public static final String NOT_USER_UNDER_TEAM = "团队下无用户";
    public static final int  PWD_IS_WRONG = 10015; // 原密码输入错误
    public static final String ORIGINAL_PASSWORD_INPUT_ERROR = "原密码输入错误";
    public static final int  DATA_IS_WRONG = 10016; // 数据有误
    public static final String DATA_ERROR = "数据有误";
    public static final int  DATA_FORMAT_WRONG = 10017; // 数据有误
    public static final String INCORRECT_DATA_FORMAT = "数据格式有误";
    public static final int  UPLOAD_EXCEL_EMPTY = 10018; // 请上传正确格式的文件
    public static final String  UPLOAD_EXCEL_EMPTY_INFO = "文件不能为空"; // 请上传正确格式的文件
    public static final int  UPLOAD_EXCEL_ERROR = 10019; // 请上传正确格式的文件
    public static final String  UPLOAD_EXCEL_ERROR_INFO = "请上传正确格式的文件"; // 请上传正确格式的文件
    public static final int  PROGRAMME_REPEAT = 10020; // 项目名称重复
    public static final String PROGRAMME_REPEAT_ERROR = "项目名称重复";
    public static final int  FILE_ISNULL = 10021; // 文件为空
    public static final String FILE_ISNULL_ERROR = "文件为空";
    public static final int  TRANSACTION_NOT_EXIST = 10022; // 事务不存在
    public static final String TRANSACTION_DOES_NOT_EXIST = "事务不存在";

    public static final String  USER_INFO = "user:info"; // 用户信息
    public static final String MAIL_HTML="<!DOCTYPE html>\n" +
            "<html lang=\"en\">\n" +
            "<head>\n" +
            "  <meta charset=\"UTF-8\">\n" +
            "  <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n" +
            "  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n" +
            "  <title>Document</title>\n" +
            "</head>\n" +
            "<body>\n";
    public static final String MAIL_HTML_BODY="</body>\n" +
            "</html>";
    public static final String MAIL_HTML_TABLE="    </tbody>\n" +
            "  </table>\n<br>";
    public static final String MAIL_HTML_PROGRAMME_INFO = "  <table border=\"1\" cellpadding=\"10\"  cellspacing=\"0\">\n" +
            "    <thead style=\"background-color:#ccc;\">\n" +
            "      <td >项目编号</td>\n" +
            "      <td >项目名称</td>\n" +
            "      <td >创建人</td>\n" +
            "      <td >创建时间</td>\n" +
            "      <td >状态</td>\n" +
            "      <td >所属团队</td>\n" +
            "      <td >操作</td>\n" +
            "    </thead>\n" +
            "    <tbody>";
    public static final String MAIL_HTML_TRANSACTION_INFO = "  <table border=\"1\" cellpadding=\"10\"  cellspacing=\"0\">\n" +
            "    <thead style=\"background-color:#ccc;\">\n" +
            "      <td >事务编号</td>\n" +
            "      <td >事务描述</td>\n" +
            "      <td >创建人</td>\n" +
            "      <td >事务提出时间</td>\n" +
            "      <td >关联项目名</td>\n" +
            "      <td >状态</td>\n" +
            "      <td >操作</td>\n" +
            "    </thead>\n" +
            "    <tbody>";
    public static final String LINK = " <a href=\"https://cloudcampusapps.top/infoEntry/\">前往详情</a>";
    public static final String LINK_ROUTE = " <a href=\"https://cloudcampusapps.top/infoEntry/\">查看更多日期或更改行程</a>";
    public static final String SUBJECT_INFO = "项目和事务清单";
    public static final String MAIL_HTML_ROUTE_INFO = "  <table border=\"1\" cellpadding=\"10\"  cellspacing=\"0\">\n" +
            "    <thead style=\"background-color:#ccc;\">\n";
    public static final String  TD = "</td>\n";
    public static final String  TD_1= "      <td >";
    public static final String  THEAD= "    </thead>\n" +
            "    <tbody>";
    // log
    public static final String LOG_MANAGER = "sys:log";
    // log
    public static final String INCR = "info:incr";
    // 立项时数据库出错，放在缓存
    public static final String INFO_SET_PROGRAMME = "info:setUpProgramme";
}
